package com.shire.shire_interface.model.massmsg;

import com.shire.shire_interface.model.BasePageExample;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxMassMsgTaskExample extends BasePageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxMassMsgTaskExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    protected boolean checkFinished;
    protected boolean checkOverTime;
    protected Date limitDate;

    public Date getLimitDate() {
        return limitDate;
    }

    public void setLimitDate(Date limitDate) {
        this.limitDate = limitDate;
    }

    public boolean isCheckOverTime() {
        return checkOverTime;
    }

    public void setCheckOverTime(boolean checkOverTime) {
        this.checkOverTime = checkOverTime;
    }

    public boolean isCheckFinished() {
        return checkFinished;
    }

    public void setCheckFinished(boolean checkFinished) {
        this.checkFinished = checkFinished;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIsNull() {
            addCriterion("msgType is null");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIsNotNull() {
            addCriterion("msgType is not null");
            return (Criteria) this;
        }

        public Criteria andMsgtypeEqualTo(Integer value) {
            addCriterion("msgType =", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotEqualTo(Integer value) {
            addCriterion("msgType <>", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeGreaterThan(Integer value) {
            addCriterion("msgType >", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("msgType >=", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeLessThan(Integer value) {
            addCriterion("msgType <", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeLessThanOrEqualTo(Integer value) {
            addCriterion("msgType <=", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIn(List<Integer> values) {
            addCriterion("msgType in", values, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotIn(List<Integer> values) {
            addCriterion("msgType not in", values, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeBetween(Integer value1, Integer value2) {
            addCriterion("msgType between", value1, value2, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("msgType not between", value1, value2, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgextraIsNull() {
            addCriterion("msgExtra is null");
            return (Criteria) this;
        }

        public Criteria andMsgextraIsNotNull() {
            addCriterion("msgExtra is not null");
            return (Criteria) this;
        }

        public Criteria andMsgextraEqualTo(String value) {
            addCriterion("msgExtra =", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraNotEqualTo(String value) {
            addCriterion("msgExtra <>", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraGreaterThan(String value) {
            addCriterion("msgExtra >", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraGreaterThanOrEqualTo(String value) {
            addCriterion("msgExtra >=", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraLessThan(String value) {
            addCriterion("msgExtra <", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraLessThanOrEqualTo(String value) {
            addCriterion("msgExtra <=", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraLike(String value) {
            addCriterion("msgExtra like", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraNotLike(String value) {
            addCriterion("msgExtra not like", value, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraIn(List<String> values) {
            addCriterion("msgExtra in", values, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraNotIn(List<String> values) {
            addCriterion("msgExtra not in", values, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraBetween(String value1, String value2) {
            addCriterion("msgExtra between", value1, value2, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgextraNotBetween(String value1, String value2) {
            addCriterion("msgExtra not between", value1, value2, "msgextra");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIsNull() {
            addCriterion("msgContent is null");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIsNotNull() {
            addCriterion("msgContent is not null");
            return (Criteria) this;
        }

        public Criteria andMsgcontentEqualTo(String value) {
            addCriterion("msgContent =", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotEqualTo(String value) {
            addCriterion("msgContent <>", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentGreaterThan(String value) {
            addCriterion("msgContent >", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentGreaterThanOrEqualTo(String value) {
            addCriterion("msgContent >=", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLessThan(String value) {
            addCriterion("msgContent <", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLessThanOrEqualTo(String value) {
            addCriterion("msgContent <=", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLike(String value) {
            addCriterion("msgContent like", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotLike(String value) {
            addCriterion("msgContent not like", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIn(List<String> values) {
            addCriterion("msgContent in", values, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotIn(List<String> values) {
            addCriterion("msgContent not in", values, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentBetween(String value1, String value2) {
            addCriterion("msgContent between", value1, value2, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotBetween(String value1, String value2) {
            addCriterion("msgContent not between", value1, value2, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andBatchsizeIsNull() {
            addCriterion("batchSize is null");
            return (Criteria) this;
        }

        public Criteria andBatchsizeIsNotNull() {
            addCriterion("batchSize is not null");
            return (Criteria) this;
        }

        public Criteria andBatchsizeEqualTo(Integer value) {
            addCriterion("batchSize =", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeNotEqualTo(Integer value) {
            addCriterion("batchSize <>", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeGreaterThan(Integer value) {
            addCriterion("batchSize >", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("batchSize >=", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeLessThan(Integer value) {
            addCriterion("batchSize <", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeLessThanOrEqualTo(Integer value) {
            addCriterion("batchSize <=", value, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeIn(List<Integer> values) {
            addCriterion("batchSize in", values, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeNotIn(List<Integer> values) {
            addCriterion("batchSize not in", values, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeBetween(Integer value1, Integer value2) {
            addCriterion("batchSize between", value1, value2, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchsizeNotBetween(Integer value1, Integer value2) {
            addCriterion("batchSize not between", value1, value2, "batchsize");
            return (Criteria) this;
        }

        public Criteria andBatchintervalIsNull() {
            addCriterion("batchInterval is null");
            return (Criteria) this;
        }

        public Criteria andBatchintervalIsNotNull() {
            addCriterion("batchInterval is not null");
            return (Criteria) this;
        }

        public Criteria andBatchintervalEqualTo(Integer value) {
            addCriterion("batchInterval =", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalNotEqualTo(Integer value) {
            addCriterion("batchInterval <>", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalGreaterThan(Integer value) {
            addCriterion("batchInterval >", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalGreaterThanOrEqualTo(Integer value) {
            addCriterion("batchInterval >=", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalLessThan(Integer value) {
            addCriterion("batchInterval <", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalLessThanOrEqualTo(Integer value) {
            addCriterion("batchInterval <=", value, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalIn(List<Integer> values) {
            addCriterion("batchInterval in", values, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalNotIn(List<Integer> values) {
            addCriterion("batchInterval not in", values, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalBetween(Integer value1, Integer value2) {
            addCriterion("batchInterval between", value1, value2, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andBatchintervalNotBetween(Integer value1, Integer value2) {
            addCriterion("batchInterval not between", value1, value2, "batchinterval");
            return (Criteria) this;
        }

        public Criteria andCsidIsNull() {
            addCriterion("csId is null");
            return (Criteria) this;
        }

        public Criteria andCsidIsNotNull() {
            addCriterion("csId is not null");
            return (Criteria) this;
        }

        public Criteria andCsidEqualTo(Integer value) {
            addCriterion("csId =", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotEqualTo(Integer value) {
            addCriterion("csId <>", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThan(Integer value) {
            addCriterion("csId >", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("csId >=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThan(Integer value) {
            addCriterion("csId <", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThanOrEqualTo(Integer value) {
            addCriterion("csId <=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidIn(List<Integer> values) {
            addCriterion("csId in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotIn(List<Integer> values) {
            addCriterion("csId not in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidBetween(Integer value1, Integer value2) {
            addCriterion("csId between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotBetween(Integer value1, Integer value2) {
            addCriterion("csId not between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andSentcountIsNull() {
            addCriterion("sentCount is null");
            return (Criteria) this;
        }

        public Criteria andSentcountIsNotNull() {
            addCriterion("sentCount is not null");
            return (Criteria) this;
        }

        public Criteria andSentcountEqualTo(Integer value) {
            addCriterion("sentCount =", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountNotEqualTo(Integer value) {
            addCriterion("sentCount <>", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountGreaterThan(Integer value) {
            addCriterion("sentCount >", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("sentCount >=", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountLessThan(Integer value) {
            addCriterion("sentCount <", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountLessThanOrEqualTo(Integer value) {
            addCriterion("sentCount <=", value, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountIn(List<Integer> values) {
            addCriterion("sentCount in", values, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountNotIn(List<Integer> values) {
            addCriterion("sentCount not in", values, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountBetween(Integer value1, Integer value2) {
            addCriterion("sentCount between", value1, value2, "sentcount");
            return (Criteria) this;
        }

        public Criteria andSentcountNotBetween(Integer value1, Integer value2) {
            addCriterion("sentCount not between", value1, value2, "sentcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountIsNull() {
            addCriterion("taskCount is null");
            return (Criteria) this;
        }

        public Criteria andTaskcountIsNotNull() {
            addCriterion("taskCount is not null");
            return (Criteria) this;
        }

        public Criteria andTaskcountEqualTo(Integer value) {
            addCriterion("taskCount =", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountNotEqualTo(Integer value) {
            addCriterion("taskCount <>", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountGreaterThan(Integer value) {
            addCriterion("taskCount >", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("taskCount >=", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountLessThan(Integer value) {
            addCriterion("taskCount <", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountLessThanOrEqualTo(Integer value) {
            addCriterion("taskCount <=", value, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountIn(List<Integer> values) {
            addCriterion("taskCount in", values, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountNotIn(List<Integer> values) {
            addCriterion("taskCount not in", values, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountBetween(Integer value1, Integer value2) {
            addCriterion("taskCount between", value1, value2, "taskcount");
            return (Criteria) this;
        }

        public Criteria andTaskcountNotBetween(Integer value1, Integer value2) {
            addCriterion("taskCount not between", value1, value2, "taskcount");
            return (Criteria) this;
        }

        public Criteria andFailcountIsNull() {
            addCriterion("failCount is null");
            return (Criteria) this;
        }

        public Criteria andFailcountIsNotNull() {
            addCriterion("failCount is not null");
            return (Criteria) this;
        }

        public Criteria andFailcountEqualTo(Integer value) {
            addCriterion("failCount =", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountNotEqualTo(Integer value) {
            addCriterion("failCount <>", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountGreaterThan(Integer value) {
            addCriterion("failCount >", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("failCount >=", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountLessThan(Integer value) {
            addCriterion("failCount <", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountLessThanOrEqualTo(Integer value) {
            addCriterion("failCount <=", value, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountIn(List<Integer> values) {
            addCriterion("failCount in", values, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountNotIn(List<Integer> values) {
            addCriterion("failCount not in", values, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountBetween(Integer value1, Integer value2) {
            addCriterion("failCount between", value1, value2, "failcount");
            return (Criteria) this;
        }

        public Criteria andFailcountNotBetween(Integer value1, Integer value2) {
            addCriterion("failCount not between", value1, value2, "failcount");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeIsNull() {
            addCriterion("sendTime is null");
            return (Criteria) this;
        }

        public Criteria andSendtimeIsNotNull() {
            addCriterion("sendTime is not null");
            return (Criteria) this;
        }

        public Criteria andSendtimeEqualTo(Date value) {
            addCriterion("sendTime =", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeNotEqualTo(Date value) {
            addCriterion("sendTime <>", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeGreaterThan(Date value) {
            addCriterion("sendTime >", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("sendTime >=", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeLessThan(Date value) {
            addCriterion("sendTime <", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeLessThanOrEqualTo(Date value) {
            addCriterion("sendTime <=", value, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeIn(List<Date> values) {
            addCriterion("sendTime in", values, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeNotIn(List<Date> values) {
            addCriterion("sendTime not in", values, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeBetween(Date value1, Date value2) {
            addCriterion("sendTime between", value1, value2, "sendtime");
            return (Criteria) this;
        }

        public Criteria andSendtimeNotBetween(Date value1, Date value2) {
            addCriterion("sendTime not between", value1, value2, "sendtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}